<template>
  <el-dialog title="检索" :visible.sync="dialogFormSearch" width="50%" center>
    <el-form :model="form">
      <el-form-item label="仓库名称" :label-width="formLabelWidth">
        <el-input v-model="form.warehouse_name" autocomplete="off" />
      </el-form-item>
      <el-form-item label="公司" :label-width="formLabelWidth">
        <el-input v-model="form.company" autocomplete="off" />
      </el-form-item>
      <el-form-item label="场所" :label-width="formLabelWidth">
        <el-input v-model="form.place" autocomplete="off" />
      </el-form-item>
      <el-form-item label="地址" :label-width="formLabelWidth">
        <el-input v-model="form.address" autocomplete="off" />
      </el-form-item>
    </el-form>
    <div slot="footer" class="dialog-footer">
      <el-button @click="dialogFormSearch = false">取 消</el-button>
      <el-button type="primary" @click="searchBtn">确 定</el-button>
    </div>
  </el-dialog>
</template>

<script>
export default {
  data() {
    return {
      form: {
        warehouse_name: '',
        company: '',
        place: '',
        address: ''
      },
      dialogFormSearch: false,
      formLabelWidth: '80px'
    }
  },
  methods: {
    searchBtn() {
      this.dialogFormSearch = false
      this.$emit('searchContent', this.form)
      this.form = {
        warehouse_name: '',
        company: '',
        place: '',
        address: ''
      }
    }
  }
}
</script>

<style lang="scss" scoped>

</style>
